<?php
namespace app\admin\model;
use think\Config;
use think\Db;
class LoginModel extends \app\common\model\CommonModel
{
    /**
     * @param string $username
     * @param string $password
     * @return mixed
     */
    public function find($username,$password)
    {
        return Db::table('admin_user')->field('id,username')->where(['username' => $username,'password' => $password])->find();       
    }
}